package com.etc.youkeshoppingssm.entity;

import java.io.Serializable;

public class ShoppingCart implements Serializable {
    private int cartId;
    private Goods goodsId;
    private int goodsCnt;
    private int userId;

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "cartId=" + cartId +
                ", goodsId=" + goodsId +
                ", goodsCnt=" + goodsCnt +
                ", userId=" + userId +
                '}';
    }

    public int getCartId() {
        return cartId;
    }

    public void setCartId(int cartId) {
        this.cartId = cartId;
    }

    public Goods getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Goods goodsId) {
        this.goodsId = goodsId;
    }

    public int getGoodsCnt() {
        return goodsCnt;
    }

    public void setGoodsCnt(int goodsCnt) {
        this.goodsCnt = goodsCnt;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public ShoppingCart(Goods goodsId, int goodsCnt, int userId) {
        this.goodsId = goodsId;
        this.goodsCnt = goodsCnt;
        this.userId = userId;
    }

    public ShoppingCart() {
    }
}
